<nav class="breadcrumb" id="pathContainer">
    <i class="Hui-iconfont Hui-iconfont-weizhi"></i>
    <span>您的位置：</span>
    <span>账表查询</span>
    <span class="c-999 en">&gt;</span>
    <span class="c-primary">结对查询</span>
</nav>
<div class="Hui-article" id="mainCon">
    <div class="row cl searchBox" style="padding-bottom: 5px">
        <form class="form form-horizontal responsive" id="searchForm" novalidate="novalidate">
            <div class="clearfix">
                <div class="conditionBox col-sm-2">
                    <label for="">所在省:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" id="province" value="">
                            <!-- <option value="">请选择</option> -->
                            <option value="河北省" readOnly>河北省</option>
                        </select>
                        <!-- <input type="hidden" value="河北省" name="province" id="h-province"> -->
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">所在市:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" id="city" value="">
                            <!-- <option value="">请选择</option> -->
                            <option value="邯郸市" readOnly>邯郸市</option>
                        </select>
                        <!-- <input type="hidden" value="邯郸市" name="city" id="h-city"> -->
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">所在县:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" id="cty" value="">
                            <!-- <option value="">请选择</option> -->
                            <option value="魏县" readOnly>魏县</option>
                        </select>
                        <!-- <input type="hidden" value="魏县" name="cty" id="h-cty"> -->
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">所在乡:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" id="cry" value="">
                            <option value="">请选择</option>
                        </select>
                        <input type="hidden" name="country" id="h-cry">
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">所在村:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" id="name" value="">
                            <option value="">请选择</option>
                        </select>
                        <input type="hidden" name="village" id="h-name">
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">年度:</label>
                    <input type="text" class="input-text pointer radius" placeholder="请输入年度" name="year" id="year" readonly/>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">脱贫状态:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" value="" name="poverty">
                            <option value="">全部</option>
                            <option value="已脱贫（享受政策）">已脱贫（享受政策）</option>
                            <option value="已脱贫（不再享受政策）">已脱贫（不再享受政策）</option>
                            <option value="返贫">返贫</option>
                            <option value="未脱贫">未脱贫</option>
                         </select>
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">是否结对:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" value="" name="Whether">
                            <option value="">全部</option>
                            <option value="0">否</option>
                            <option value="1">是</option>
                        </select>
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">贫困人口姓名:</label>
                    <input type="text" class="input-text radius" placeholder="请输入姓名" name="name" />
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">证件号码:</label>
                    <input type="text" class="input-text radius" placeholder="请输入证件号码" name="idNumber" />
                </div>
            </div>
            <div class="clearfix btn-div">
                <input type="button" class="btn btn-primary queryBtn btn-secondary float-left mr-4 mt-10" value="查 询"/>
                <input type="button" class="btn btn-primary export_btn btn-secondary float-left mr-4 mt-10" value="导 出"/>
            </div>
        </form>
    </div>
    
    <!-- 贫困户 -->
    <div class="container clearfix" style="height: 70%">
        <div class="col-md-6 pr-20 border-right">
            <h4 class="pl-10 border-left-blue">贫困户</h4>
            <div class="table-scroll2">
                <table class="table table-border table-bordered">
                    <thead class="text-c row cl table-bgcolor-gary" id="thead">
                        <tr>
                            <th></th>
                            <th>序号</th>
                            <th>户主姓名</th>
                            <th>户主证件号码</th>
                            <th>脱贫状态</th>
                            <th>识别标准</th>
                            <th>贫困户属性</th>
                            <th>联系电话</th>
                        </tr>
                    </thead>
                    <tbody class="text-c row cl" id="tbody1"></tbody>
                </table>
            </div>
            <!-- 贫困户分页 -->
            <div class="page pt-10 clearfix h-8p">
                <div class="f-l fs-08r" style="white-space: nowrap;" id="pageContainer"></div>
                <div class="f-r page-div w-37p h-20" id="pageBtn">
                    <input type="button" value="首页" class="page-btn" id="firstPage">
                    <input type="button" value="上一页" class="page-btn" id="prevPage">
                    <input type="button" value="下一页" class="page-btn" id="nextPage">
                    <input type="button" value="尾页" class="page-btn" id="lastPage">
                </div>
            </div>
        </div>

        <!-- 帮扶责任人列表 -->
        <div class="col-md-6 pl-20">
            <h4 class="pl-10 border-left-blue">帮扶责任人列表</h4>
            <div class="table-scroll2">
                <table class="table table-border table-bordered">
                    <thead class="text-c row cl table-bgcolor-gary" id="thead">
                        <tr>
                            <th></th>
                            <th>序号</th>
                            <th>姓名</th>
                            <th>单位名称</th>
                            <th>单位隶属关系</th>
                            <th>开始时间</th>
                            <th>终止时间</th>
                            <th>证件号码</th>
                            <th>性别</th>
                            <th>联系电话</th>
                            <th>单位地址</th>
                        </tr>
                    </thead>
                    <tbody class="text-c row cl" id="tbody2"></tbody>
                </table>
            </div>
            <!-- 帮扶责任人列表分页 -->
            <!-- <div class="page pt-10 clearfix h-8p">
                <div class="f-l fs-08r" style="white-space: nowrap;" id="pageContainer2"></div>
                <div class="f-r page-div w-37p h-20" id="pageBtn2">
                    <input type="button" value="首页" class="page-btn" id="firstPage2">
                    <input type="button" value="上一页" class="page-btn" id="prevPage2">
                    <input type="button" value="下一页" class="page-btn" id="nextPage2">
                    <input type="button" value="尾页" class="page-btn" id="lastPage2">
                </div>
            </div> -->

        </div>
    </div>
    
</div>

<!-- 贫困户模板 -->
<script id="list1" type="text/x-handlebars-template">
    \{{#each resultList}}
    <tr>
        <td><input type="radio" name="radio" id="\{{id}}"></td>
        <td>\{{Math @index '+' '1'}}</td>
        <td>\{{family.[0].name}}</td>
        <td>\{{family.[0].idNumber}}</td>
        <td>\{{poverty}}</td>
        <td>\{{standard}}</td>
        <td>\{{attribute}}</td>
        <td>\{{contact}}</td>
    </tr>
    \{{/each}}
</script>

<!-- 帮扶责任人列表模板 -->
<script id="list2" type="text/x-handlebars-template">
    \{{#each result}}
    <tr>
        <td><input type="radio" name="radio2" id="\{{id}}"></td>
        <td>\{{Math @index '+' '1'}}</td>
        <td>\{{this.[10]}}</td>
        <td>\{{this.[17]}}</td>
        <td>\{{this.[16]}}</td>
        <td>\{{timestampToDateString this.[6]}}</td>
        <td>\{{timestampToDateString this.[14]}}</td>
        <td>\{{this.[1]}}</td>
        <td>\{{this.[11]}}</td>
        <td>\{{this.[13]}}</td>
        <td>\{{this.[19]}}</td>
    </tr>
    \{{/each}}
</script>

<!-- 贫困户分页 -->
<script id="page" type="text/x-handlebars-template">
    <span>共有\{{rowCount}}条记录，</span>
    <label for="">每页行数：</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageSize">
            <option value="10" selected>10</option>
            <option value="20">20</option>
            <option value="50">50</option>
            <option value="100">100</option>
            <option value="200">200</option>
            <option value="300">300</option>
        </select>
    </span>
    <label for="ipt2">当前第</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageCount">
            \{{#each pageCount}}
            <option value="\{{pageCount}}">\{{pageCount}}</option>
            \{{/each}}
        </select>
    </span>
    <span>页</span>
</script>

<!-- 帮扶责任人列表分页 -->
<!-- <script id="page2" type="text/x-handlebars-template">
    <span>共有\{{rowCount}}条记录，</span>
    <label for="">每页行数：</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo2" id="pageSize2">
            <option value="10" selected>10</option>
            <option value="20">20</option>
            <option value="50">50</option>
            <option value="100">100</option>
            <option value="200">200</option>
            <option value="300">300</option>
        </select>
    </span>
    <label for="">当前第</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo2" id="pageCount2">
            \{{#each pageCount}}
            <option value="\{{pageCount}}">\{{pageCount}}</option>
            \{{/each}}
        </select>
    </span>
    <span>页</span>
</script> -->

<script>
    new doubleInquire(); 
</script>